/*
******************************
* Copyright by Maxic Tech                                                      *
* All rights are reserved.
******************************
*/

#ifndef __MAXIC_I2C_H__
#define __MAXIC_I2C_H__

#include <string.h>
#include <stdio.h>

int32_t maxic_i2c_read(uint8_t reg, uint8_t *val);
int32_t maxic_i2c_write(uint8_t reg, uint8_t val);
int32_t maxic_i2c_modify(uint8_t reg, uint8_t mask, uint8_t val);
int32_t maxic_i2c_blk_read(uint8_t reg, uint8_t *val, int32_t size);
int32_t maxic_i2c_blk_write(uint8_t reg, uint8_t *val, int32_t size);

#endif
